//
//  UIImage+XSAddition.m
//  ETD
//
//  Created by Cedar on 16/10/28.
//  Copyright © 2016年 Cedar. All rights reserved.
//

#import "UIImage+XSAddition.h"

@implementation UIImage (XSAddition)

+ (instancetype)imageWithBase64String:(NSString *)imgString {
    
    NSData *data   = [[NSData alloc] initWithBase64EncodedString:imgString options:NSDataBase64DecodingIgnoreUnknownCharacters];
    
    return [UIImage imageWithData:data];;
}

@end
